 // The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import '../static/mui/css/mui.min.css'
import '../static/mui/css/icons-extra.css'

//导入安装axios
import axios from 'axios'
Vue .prototype.$http = axios

//  导入安装 vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource)
Vue.use(MintUI)


import moment from 'moment'
//定义全局的过滤器
 Vue.filter('dataFormat',function(dataStr,pattern = "YYYY-MM-DD HH-mm-ss") {
	 return moment(dataStr).format(pattern)
 })

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
